import axios from '@/utils/axios'

export const getLog = (id: string): Promise<ApiResult<SystemLogPO>> => {
  return axios.get(`system/log/${id}`)
}

export const getLogPage = (
  pagination: Pagination,
  params: SystemLogPO
): Promise<ApiResult<Page<SystemLogPO>>> => {
  return axios.get(`system/log/page/${pagination.page}/${pagination.pageSize}`, { params })
}

export const deleteLog = (id: string): Promise<ApiResult<null>> => {
  return axios.delete(`system/log/${id}`)
}
